﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace pdftron.PDF.Tools
{
    static class ResourceHandler
    {
#if WINDOWS_80 
        private static Windows.ApplicationModel.Resources.ResourceLoader _ResourceLoader = 
        new Windows.ApplicationModel.Resources.ResourceLoader("pdftron.PDF.Tools/Resources");

#elif WINDOWS_PHONE_APP || WINDOWS_APP
        private static Windows.ApplicationModel.Resources.ResourceLoader _ResourceLoader =
            Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView("pdftron.PDF.Tools/Resources");
#else
        private static Windows.ApplicationModel.Resources.ResourceLoader _ResourceLoader = Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView("pdftron.PDF.Tools/Resources");
#endif


        public static string GetString(string key)
        {
            return _ResourceLoader.GetString("pdftron_Tool_" + key);
        }
    }
}
